package com.blb.service.impl;

import com.blb.entity.Ware;
import com.blb.mapper.WareMapper;
import com.blb.service.IWareService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author HuaHao
 * @since 2019-11-15
 */
@Service
public class WareServiceImpl extends ServiceImpl<WareMapper, Ware> implements IWareService {

   @Resource
   private WareMapper wareMapper;

    @Override
    public List<Ware> findAllWare2(String companyId) {
        return wareMapper.findAllWare2(companyId);
    }

    @Override
    public List<Ware> findAllWare(String companyId) {
        return wareMapper.findAllWare(companyId);
    }

    @Override
    public String findCargoNumById(String id) {
        return wareMapper.findCargoNumById(id);
    }

    @Override
    public void AddWare(Ware ware) {
        wareMapper.AddWare(ware);
    }

    @Override
    public void UpdateWare(Ware ware) {
        wareMapper.UpdateWare(ware);
    }

    @Override
    public void UpdataCargoNum(Ware ware) {
        wareMapper.UpdataCargoNum(ware);
    }

    @Override
    public void UpdateWareStatus(Ware ware) {
        wareMapper.UpdateWareStatus(ware);
    }

    @Override
    public void UpdateWareStatus1(Ware ware) {
        wareMapper.UpdateWareStatus1(ware);
    }
}
